from mysql
RUN cp /etc/apt/sources.list /etc/apt/sources.list.bak && \
echo '' > /etc/apt/sources.list && \
echo 'deb http://mirrors.aliyun.com/debian/ buster main non-free contrib' >> /etc/apt/sources.list && \
echo 'deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib' >> /etc/apt/sources.list && \
echo 'deb http://mirrors.aliyun.com/debian-security buster/updates main' >> /etc/apt/sources.list && \
echo 'deb-src http://mirrors.aliyun.com/debian-security buster/updates main' >> /etc/apt/sources.list && \
echo 'deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib' >> /etc/apt/sources.list && \
echo 'deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib' >> /etc/apt/sources.list && \
echo 'deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib' >> /etc/apt/sources.list && \
echo 'deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib' >> /etc/apt/sources.list && \
apt-get update && \
apt-get install procps -y && \
apt-get install net-tools -y && \
echo 'server-id=100' >> /etc/mysql/my.cnf && \
echo 'log-bin=mysql-bin' >> /etc/mysql/my.cnf && \
echo 'default_authentication_plugin=caching_sha2_password' >> /etc/mysql/my.cnf